
//  request params 转  object
export const objectToData = function( url , method , data){
	let params = [ ...arguments ]
	if(params.length == 2) {
		method = 'post'
		data = params[1]
	}
	return { url , method , [method == 'post' ? 'data': 'params'] :data}
}


